package singleton;

public class TicketMaker {
	private static TicketMaker ticketMaker = new TicketMaker();
	private int ticket = 1000;
	public static TicketMaker getInstance() {
		return ticketMaker;
	}
	public int getTicket() {
		return ticketMaker.ticket++;
	}
}
